using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace Pangeo.Admin.Models.BaBizDb.Entity
{
    [SugarTable(nameof(QrqcEmailUser))]
    public class QrqcEmailUser
    {
        /// <summary>
        /// 主键
        /// </summary>
		[NotNull]
        [DisplayName("主键")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// 获取或设置 部门名称 Not Null
        /// </summary>
		[NotNull]
        [DisplayName("部门名称")]
        [Required(ErrorMessage = "{0}不可为空")]
        [MaxLength(125, ErrorMessage = "{0}不能超过 125 个字符")]
        public string DeptName { get; set; }

        /// <summary>
        /// 获取或设置  Not Null
        /// </summary>
		[NotNull]
        [DisplayName("")]
        [Required(ErrorMessage = "{0}不可为空")]
        [MaxLength(30, ErrorMessage = "{0}不能超过 30 个字符")]
        public string Email { get; set; }

        [NotNull]
        [DisplayName("是否启用")]
        [Required(ErrorMessage = "{0}不可为空")]
        [MaxLength(30, ErrorMessage = "{0}不能超过 30 个字符")]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 获取或设置 员工姓名 Allow Null
        /// </summary>
		[AllowNull]
        [DisplayName("员工姓名")]
        [MaxLength(20, ErrorMessage = "{0}不能超过 20 个字符")]
        public string EmpName { get; set; }

        /// <summary>
        /// 获取或设置 工号 Not Null
        /// </summary>
		[NotNull]
        [DisplayName("工号")]
        [Required(ErrorMessage = "{0}不可为空")]
        [MaxLength(12, ErrorMessage = "{0}不能超过 12 个字符")]
        public string EmpNo { get; set; }

        /// <summary>
        /// 获取或设置  Allow Null
        /// </summary>
		[AllowNull]
        [DisplayName("")]
        [MaxLength(10, ErrorMessage = "{0}不能超过 10 个字符")]
        public string PositionName { get; set; }

        /// <summary>
        /// 获取或设置  Not Null
        /// </summary>
		[NotNull]
        [DisplayName("")]
        [Required(ErrorMessage = "{0}不可为空")]
        public DateTime UpdateTime { get; set; }

        #region 添加的成员

        #endregion
    }
}
